﻿using System;
using System.Web.UI.WebControls;

namespace Altairis.FluffyCloud.WebCore.Pages.Sewen {

    public partial class PageEdit : System.Web.UI.Page {

        protected void Page_Load(object sender, EventArgs e) {
        }

        protected void PageFormView_ItemCommand(object sender, FormViewCommandEventArgs e) {
            if (e.CommandName.Equals("Cancel", StringComparison.OrdinalIgnoreCase)) {
                Response.RedirectToRoute("WikiPage");
            }
        }

        protected void PageFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) {
            Response.RedirectToRoute("WikiPage");
        }
    }
}